package mips.instruction;

import mips.Reg;
import mips.element.Instruction;

public class JALR extends Instruction {
    private Reg rd;
    private Reg rs;

    public JALR(Reg rd, Reg rs) {
        this.rd = rd;
        this.rs = rs;
    }

    public Reg getRd() {
        return rd;
    }

    public Reg getRs() {
        return rs;
    }

    public String toString() {
        return "jalr\t" + rd + " " + rs;
    }
}
